<?php
class Gold_Productshipping_Block_Shipping extends Mage_Checkout_Block_Cart_Shipping{


      public function _construct() {
         parent::_construct();
         $this->setTemplate('productshipping/shipping.phtml');
      }
   
    public function getProduct(){
      return  Mage::registry('current_product');
    }
    public function getEstimateRates(){
        
        if (empty($this->_rates)) {
            $groups = $this->Helper('productshipping')->getRates();
            $this->_rates = $groups;
        }
        return $this->_rates;
    }
     public function getProductDefaultQty($product = null)
    {
       return $this->Helper('productshipping')->getProductDefaultQty($product);
    }
    

}
